﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagerTouchManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Manager.TouchManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 3, 7, 7);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "On_ScrollEnd", _m_On_ScrollEnd);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "touchInputController", _g_get_touchInputController);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaOnAITouchClick", _g_get_luaOnAITouchClick);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnItemTapped", _g_get_OnItemTapped);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnItemTappedCancle", _g_get_OnItemTappedCancle);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnItemDragStart", _g_get_OnItemDragStart);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnItemDrag", _g_get_OnItemDrag);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnItemDragStop", _g_get_OnItemDragStop);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "touchInputController", _s_set_touchInputController);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaOnAITouchClick", _s_set_luaOnAITouchClick);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnItemTapped", _s_set_OnItemTapped);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnItemTappedCancle", _s_set_OnItemTappedCancle);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnItemDragStart", _s_set_OnItemDragStart);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnItemDrag", _s_set_OnItemDrag);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnItemDragStop", _s_set_OnItemDragStop);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 12, 1, 0);
			
			
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchStart", Yoozoo.Manager.TouchManager.LUAFunctionName_OnTouchStart);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchUp", Yoozoo.Manager.TouchManager.LUAFunctionName_OnTouchUp);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_On_SimpleTap", Yoozoo.Manager.TouchManager.LUAFunctionName_On_SimpleTap);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDragStart", Yoozoo.Manager.TouchManager.LUAFunctionName_OnDragStart);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDrag", Yoozoo.Manager.TouchManager.LUAFunctionName_OnDrag);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDragEnd", Yoozoo.Manager.TouchManager.LUAFunctionName_OnDragEnd);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDoubleTap", Yoozoo.Manager.TouchManager.LUAFunctionName_OnDoubleTap);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchDown", Yoozoo.Manager.TouchManager.LUAFunctionName_OnTouchDown);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnFingerUpLastOne", Yoozoo.Manager.TouchManager.LUAFunctionName_OnFingerUpLastOne);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnAITouchClick", Yoozoo.Manager.TouchManager.LUAFunctionName_OnAITouchClick);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnScrollEnd", Yoozoo.Manager.TouchManager.LUAFunctionName_OnScrollEnd);
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Ins", _g_get_Ins);
            
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Manager.TouchManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.TouchManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Manager.TouchManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Manager.TouchManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    BitBenderGames.MobileTouchCamera _mobileTouchCamera = (BitBenderGames.MobileTouchCamera)translator.GetObject(L, 2, typeof(BitBenderGames.MobileTouchCamera));
                    
                    gen_to_be_invoked.Initialize( _mobileTouchCamera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Destroy(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Destroy(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_On_ScrollEnd(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.On_ScrollEnd(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Ins(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Manager.TouchManager.Ins);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_touchInputController(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.touchInputController);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_luaOnAITouchClick(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.luaOnAITouchClick);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnItemTapped(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.OnItemTapped);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnItemTappedCancle(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.OnItemTappedCancle);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnItemDragStart(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.OnItemDragStart);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnItemDrag(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.OnItemDrag);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnItemDragStop(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.OnItemDragStop);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_touchInputController(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.touchInputController = (BitBenderGames.TouchInputController)translator.GetObject(L, 2, typeof(BitBenderGames.TouchInputController));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_luaOnAITouchClick(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.luaOnAITouchClick = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnItemTapped(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.OnItemTapped = translator.GetDelegate<UnityEngine.Events.UnityAction<Yoozoo.Manager.TouchManager.TouchEvent>>(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnItemTappedCancle(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.OnItemTappedCancle = translator.GetDelegate<UnityEngine.Events.UnityAction<Yoozoo.Manager.TouchManager.TouchEvent>>(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnItemDragStart(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.OnItemDragStart = translator.GetDelegate<UnityEngine.Events.UnityAction<Yoozoo.Manager.TouchManager.TouchEvent>>(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnItemDrag(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.OnItemDrag = translator.GetDelegate<UnityEngine.Events.UnityAction<Yoozoo.Manager.TouchManager.TouchEvent>>(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnItemDragStop(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Manager.TouchManager gen_to_be_invoked = (Yoozoo.Manager.TouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.OnItemDragStop = translator.GetDelegate<UnityEngine.Events.UnityAction<Yoozoo.Manager.TouchManager.TouchEvent>>(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
